package main

import (
	"net/http"
	"io"
)

//使用handleFunc实现go web
func main() {
	http.HandleFunc("/", sayHello)
	http.ListenAndServe("localhost:8090", nil)
}
func sayHello(writer http.ResponseWriter, request *http.Request) {
	io.WriteString(writer, "hello world, this is handleFunc implement.")
}
